import java.util.Scanner;

public class program2 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        System.out.print("Enter the radius and length of a cylinder: ");
        double r = in.nextDouble();
        double len = in.nextDouble();
        double area = r * r * Math.PI;
        double volume = area * len;
        System.out.printf("The area is %.4f%n", area);
        System.out.printf("The volume is %.1f%n", volume);
    }
}